package com.zmn.oms.services.impl.quotation3;

import com.zmn.oms.model.entity.quotation3.OrderServiceContent;
import com.zmn.oms.persistence.interfaces.quotation3.OrderServiceContentDao;
import com.zmn.oms.services.interfaces.quotation3.OrderServiceContentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author sunlife
 * @date:2021/12/3 6:48 下午
 * description:
 */
@Service
public class OrderServiceContentServiceImpl implements OrderServiceContentService {

    @Resource
    OrderServiceContentDao orderServiceContentDao;

    @Override
    public void batchInsert(List<OrderServiceContent> serviceContentList) {
        orderServiceContentDao.batchInsert(serviceContentList);
    }

    @Override
    public List<OrderServiceContent> listByOrderId(Long orderId) {
        return orderServiceContentDao.listByOrderId(orderId);
    }

    @Override
    public void deleteByOrderId(Long orderId) {
        orderServiceContentDao.deleteByOrderId(orderId);
    }
}
